import request from '@/utils/request'
export function getListPage(params) {
    return request({
      url: '/operate/confBottom/confBottomList',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
      },
      method: 'get',
      params: params
    })
  }
  
  export function delBottom(rowId) {
    return request({
        url: '/operate/confBottom/delete/'+rowId,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'delete',
    })
  }
  
  export function getPubList(params) {
    return request({
      url: '/ejob/jobOffers/pub/listPage',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
      },
      method: 'get',
      params:params
    })
  }
  export function addBottom(data) {
    return request({
      url: '/operate/confBottom',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
      },
      method: 'post',
      data
    })
  }
  
  export function updateStatus(rowId) {
    return request({
      url: '/operate/confBottom/update/'+rowId,
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
      },
      method: 'put'
    })
  }
  export function updateUp(rowId) {
    return request({
      url: '/operate/confBottom/updateUp/'+rowId,
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
      },
      method: 'put'
    })
  }
  